//协议价指定商品
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//分页
export function agreementProductPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/agreementProduct/page`,
    method: "get",
    params
  });
}
//创建
export function agreementProductCreate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/agreementProduct/create`,
    method: "post",
    data
  });
}
//修改
export function agreementProductUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/agreementProduct/update`,
    method: "post",
    data
  });
}
//删除
export function agreementProductDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/agreementProduct/delete`,
    method: "post",
    data
  });
}
//详情
export function agreementProductDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/agreementProduct/detail`,
    method: "get",
    params
  });
}
//list集合
export function agreementProductList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/agreementProduct/list`,
    method: "get",
    params
  });
}
